package com.tansun.easycare.modules.sys.service;

import java.util.List;

import com.jeedev.msdp.base.entity.BaseEntity;
import com.jeedev.msdp.base.entity.SysUser;
import com.jeedev.msdp.sys.entity.SysRole;

public interface SysCommService {

	SysUser get(String id);

	SysUser getByLoginName(String loginName);
	
	SysUser getByRealName(String loginName);

	void clearCache();

	void clearCache(SysUser user);

	SysUser getUserById(String id);

	List<SysRole> getRoleList();

	Object getCache(String key);

	Object getCache(String key, Object defaultValue);

	void putCache(String key, Object value);

	void removeCache(String key);

	List<SysUser> getUserListByRole(String roleName);

	SysUser getCurrUser();


}
